<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Admin\Controller;

use Admin\Controller\AdminController;
use Admin\Model\BorrowModel;
/**
 * @author wangnaixin
 * @todo 借贷记录
 * @menu 借贷列表
 * @menuAuto index
 * @order 150
 * @icon index.png
 */
class BorrowController extends AdminController {
    //put your code here
    
    private $borrowModel;
    
    function __construct() {
        parent::__construct();
        $this->borrowModel = new BorrowModel();
    }
    /**
     * @author wangnaixin
     * @todo 借贷列表
     */
    public function index(){
        $this->assign("data",$this->borrowModel->getList());
        $this->display();
    }
}
